var StorageUtil = {
  setSession: function (key, value) {
    var obj = {
      data: value
    };
    window.sessionStorage.setItem(key, JSON.stringify(obj));
  },

  getSession: function (key) {
    var obj = window.sessionStorage.getItem(key);
    if (SysUtil.isEmpty(obj)) {
      return null;
    }

    obj = JSON.parse(obj);
    return obj.data;
  },

  removeSession: function (key) {
    if (key === undefined) {
      window.sessionStorage.clear();
    } else {
      window.sessionStorage.removeItem(key);
    }
  },

  clearSessionList:function(keys){
    for (var i = 0; i < keys.length; i++) {
      var key = keys[i];
      this.removeSession(key);
    }
  }
};